package com.travelshare.business.domain;

import java.util.Date;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.travelshare.common.core.domain.BaseEntity;

/**
 * 用户收藏信息对象 tb_user_collect
 * 
 * @author travelshare
 * @date 2024-02-22
 */
public class UserCollect extends BaseEntity {
	private static final long serialVersionUID = 1L;

	/** 用户id */
	private Long userId;

	/** 文章id */
	private Long detailId;

	private String title;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date releaseTime;
	private String comeForm;
	private String nickName;

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public Date getReleaseTime() {
		return releaseTime;
	}

	public void setReleaseTime(Date releaseTime) {
		this.releaseTime = releaseTime;
	}

	public String getComeForm() {
		return comeForm;
	}

	public void setComeForm(String comeForm) {
		this.comeForm = comeForm;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public Long getUserId() {
		return userId;
	}

	public void setDetailId(Long detailId) {
		this.detailId = detailId;
	}

	public Long getDetailId() {
		return detailId;
	}

	@Override
	public String toString() {
		return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("userId", getUserId())
				.append("detailId", getDetailId()).toString();
	}
}
